<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

   
    <jsp:include page="include.jsp"/>
    <script type="text/javascript">
      
      
         var sessionId="${livee}";  
         
         $.ajax({
                url : '/shyl/checkUserBySessionId',
               dataType:'json',
               data:{sessionId:sessionId},
                success : function(data) {
           
            if(data.flag=="success"){
            
             var loginData=JSON.stringify(data.result);
     
         
           
             $.ajax({
             url:'${pageContext.request.contextPath}/userAction!UserData.action',
             dataType:'json',
             data:{loginData:loginData},
             success:function(data){
             }
               });
            // $.post('${pageContext.request.contextPath}/userAction!checkLogin.action?loginData='+JSON.stringify(loginData),function(result){});
         //  window.location.href='${pageContext.request.contextPath}/userAction!checkLogin.action?loginData='+loginData;
          window.location.href='${pageContext.request.contextPath}/userAction!checkLogin.action';
           
             }else{
             window.location.href='${pageContext.request.contextPath}/userAction!login.action';
           
             }
            
           }
                
          });
         
       

       
    </script>

